<?php

namespace App\Http\Controllers\Mini\Shop;

use App\Http\Controllers\Controller;

/**
 * Class NoticeController
 * @package App\Http\Controllers\Mini\Shop
 * 2021/3/18 - 14:39
 * Administrator
 * 商城外层 消息通知
 */
class NoticeController extends Controller
{
    public $ShopService;

    /**
     * NoticeController constructor.
     */
    public function __construct()
    {
        $this->ShopService = new \App\Services\ShopNotice();
    }

    /**
     * 2021/3/18--14:41
     * @author:董宗澳
     * @email:2453611300
     * @wechat:DZA74941
     * @QQ:2453611300
     * @web:www.quzha.net
     * @method:getNoticeList
     * @effect:获取消息列表
     */
    public function getNoticeList()
    {
        try {
            return $this->ShopService->getNotice();
        } catch (\Exception $e) {
            return $this->format_error($e->getMessage());
        }
    }
}
